<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="java.util.*" %>
<%@ page import="com.ionglobal.db.*" %>
<%@ page import="com.ionglobal.lib.*" %>
<%@ page import="com.ionglobal.misc.*" %>
<%@ page import="com.ionglobal.project.*" %>

<%@ include file="../init_include.jsp" %>
<%@ include file="../checkPrivileges.jsp" %>
<%
	int catid=Request.getInt("catid");

	int id = Request.getInt("id",0);
	PaletteApp newPaletteApp = new PaletteApp();
	Palette newPalette = new Palette();
	if(id != 0)
		newPalette = newPaletteApp.getPalette(dbi,id);
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<%=Language.getHTMLLanguageStr()%>">
<link rel="stylesheet" href="<%=Language.getCSSFile(session)%>" type="text/css">
<SCRIPT language=JavaScript1.2 src="../script/editor.js"></SCRIPT>
<title>ggs_palette</title>
</head>
<body>
<%=Language.getNameByCode("sys.CurrentPos","Current Position")%>:<%=Language.getNameByCode("cms.dj.title","Add or Edit")%>ggs_palette<br> 
<hr>   
 <table width="100%" border="0" cellspacing="1" cellpadding="2" class="input_title">
   <tr>
     <td>&nbsp;<%=Language.getNameByCode("cms.dj.title","Add or Edit")%>ggs_palette</td>
   </tr>
 </table>
   <script language="javascript">
   <!--
   	function checkForm() {
   		var sForm=document.formIon;
   		sForm.Submit.disabled = true;
   	}
   	-->
   </script> 	
	 <form method="post" name="formIon" action="Palette_addmod.jsp" onSubmit="return checkForm();">
   <table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#666666">
		    <tr class="bgcolor_title_tr">
      <td  class="input_title">iid</td>
      <td>    <input name="iid" type="text" value="<%=newPalette.getid()%>" size="10" maxlength="10">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">banner_background</td>
      <td>    <input name="banner_background" type="text" value="<%=newPalette.getanner_background()%>" size="10" maxlength="10">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">banner_text</td>
      <td>    <input name="banner_text" type="text" value="<%=newPalette.getanner_text()%>" size="10" maxlength="10">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">table_border</td>
      <td>    <input name="table_border" type="text" value="<%=newPalette.getable_border()%>" size="10" maxlength="10">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">table_light</td>
      <td>    <input name="table_light" type="text" value="<%=newPalette.getable_light()%>" size="10" maxlength="10">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">table_background</td>
      <td>    <input name="table_background" type="text" value="<%=newPalette.getable_background()%>" size="10" maxlength="10">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">table_text</td>
      <td>    <input name="table_text" type="text" value="<%=newPalette.getable_text()%>" size="10" maxlength="10">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sCrDate</td>
      <td>    <input name="sCrDate" type="text" value="<%=newPalette.getCrDate()%>" size="20" maxlength="23">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sCrUser</td>
      <td>    <input name="sCrUser" type="text" value="<%=newPalette.getCrUser()%>" size="20" maxlength="20">
      </td>
    </tr>

 </table>
 <input type="Submit" name="Submit" style="width=80" value="<%=Language.getNameByCode("sys.Submit","Submit")%>">
 <input type="Reset" name="Reset" style="width=80" value="<%=Language.getNameByCode("sys.Reset","Reset")%>">
 <input type="button" name="close" style="width=80" value="<%=Language.getNameByCode("sys.Close","Close")%> " onClick="self.close();">
 <input type="hidden" name="id" value="<%=id%>">
 <input type="hidden" name="catid" value="<%=catid%>">
</form>
</body>                
</html>
<%@ include file="../init_free.jsp" %>
